package cn.com.bluemoon.daps.system.mapper;

import cn.com.bluemoon.daps.system.entity.DapSystemTag;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 系统标签表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2020-08-03
 */
@Repository
public interface DapSystemTagMapper extends BaseMapper<DapSystemTag> {

    /**
     * 通过模型id或模型下属表id获得标签列表
     * @param dataId
     * @return
     */
    List<DapSystemTag> selectTagList(@Param("dataId") String dataId,
                                     @Param("relType") Integer relType);

}
